<template>
  <div class="boss">
    <Top></Top>
    <Banner id="4"></Banner>
    <chamber></chamber>
    <div class="war">
      <div class="area-center">
        <head-page title="全国各省"></head-page>
        <div class="bottom">
          <div class="center">
            <div class="shenghui">
              <div
                class="small verdana"
                v-for="(item, index) in address"
                :key="index"
                @click="provincial(item)"
              >
                {{ item.provincial }}
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import { Notice } from "@/api/index";
import Top from "@/components/Home/TopPage.vue";
import Banner from "@/components/Home/BannerView.vue";
import chamber from "@/components/Home/CommCe.vue";
export default {
  data() {
    return {
      address: [],
    };
  },
  components: {
    Top,
    Banner,
    chamber,
  },
  //各省会发送请求的
  created() {
    Notice().then((res) => {
      this.address = res.data;
    });
  },
  methods: {
    provincial(item) {
      this.$router.push({
        path: "/chambertwo/chamberfour",
        query: {
          id: item.pid,
          provincial: item.provincial,
        },
      });
    },
  },
};
</script>

<style scoped>
.boss {
  width: 100%;
}
.bottom {
  width: 100%;
  min-height: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;

}

.bottom .center {
  height: 100%;
  margin-top: 0.05rem;
}
/* 省会区域 */
.shenghui {
  display: flex;
  flex-wrap: wrap;
}
.small {
  min-width: 0.5rem;
  height: 0.3rem;
  flex-shrink: 0;
  text-align: center;
  line-height: 0.3rem;
  margin: 4px;
  font-size: 0.2rem;
}
</style>